.class public Lcom/instagram/android/creation/b/cq;
.super Lcom/instagram/e/b/b;
.source "ShareLaterFragment.java"

# interfaces
.implements Lcom/instagram/a/b;
.implements Lcom/instagram/android/widget/aq;


# instance fields
.field private Z:Lcom/instagram/android/d/j/a;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/instagram/android/d/j/a",
            "<",
            "Ljava/lang/Void;",
            ">;"
        }
    .end annotation
.end field

.field private a:Lcom/instagram/android/widget/IgAutoCompleteTextView;

.field private b:Landroid/os/Handler;

.field private c:Lcom/instagram/android/model/ShareLaterMedia;

.field private d:Lcom/instagram/android/widget/ShareTable;

.field private e:Lcom/instagram/android/widget/ag;

.field private f:Landroid/view/View;

.field private g:Landroid/widget/ImageView;

.field private h:I

.field private i:Lcom/instagram/android/util/a;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 36
    invoke-direct {p0}, Lcom/instagram/e/b/b;-><init>()V

    .line 43
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/creation/b/cq;->b:Landroid/os/Handler;

    .line 187
    new-instance v0, Lcom/instagram/android/creation/b/cu;

    invoke-direct {v0, p0}, Lcom/instagram/android/creation/b/cu;-><init>(Lcom/instagram/android/creation/b/cq;)V

    iput-object v0, p0, Lcom/instagram/android/creation/b/cq;->Z:Lcom/instagram/android/d/j/a;

    return-void
.end method

.method private Y()V
    .locals 3

    .prologue
    .line 245
    iget-object v0, p0, Lcom/instagram/android/creation/b/cq;->g:Landroid/widget/ImageView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 246
    iget-object v0, p0, Lcom/instagram/android/creation/b/cq;->i:Lcom/instagram/android/util/a;

    iget-object v1, p0, Lcom/instagram/android/creation/b/cq;->g:Landroid/widget/ImageView;

    const v2, 0x3f0ccccd

    invoke-virtual {v0, v1, v2}, Lcom/instagram/android/util/a;->a(Landroid/view/View;F)V

    .line 247
    return-void
.end method

.method private Z()V
    .locals 3

    .prologue
    .line 250
    iget-object v0, p0, Lcom/instagram/android/creation/b/cq;->g:Landroid/widget/ImageView;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 251
    iget-object v0, p0, Lcom/instagram/android/creation/b/cq;->i:Lcom/instagram/android/util/a;

    iget-object v1, p0, Lcom/instagram/android/creation/b/cq;->g:Landroid/widget/ImageView;

    const/high16 v2, 0x3f80

    invoke-virtual {v0, v1, v2}, Lcom/instagram/android/util/a;->a(Landroid/view/View;F)V

    .line 252
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/cq;Landroid/view/View;)Landroid/view/View;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 36
    iput-object p1, p0, Lcom/instagram/android/creation/b/cq;->f:Landroid/view/View;

    return-object p1
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/cq;Landroid/widget/ImageView;)Landroid/widget/ImageView;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 36
    iput-object p1, p0, Lcom/instagram/android/creation/b/cq;->g:Landroid/widget/ImageView;

    return-object p1
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/cq;)Lcom/instagram/android/widget/IgAutoCompleteTextView;
    .locals 1
    .parameter

    .prologue
    .line 36
    iget-object v0, p0, Lcom/instagram/android/creation/b/cq;->a:Lcom/instagram/android/widget/IgAutoCompleteTextView;

    return-object v0
.end method

.method static synthetic b(Lcom/instagram/android/creation/b/cq;)Lcom/instagram/android/model/ShareLaterMedia;
    .locals 1
    .parameter

    .prologue
    .line 36
    iget-object v0, p0, Lcom/instagram/android/creation/b/cq;->c:Lcom/instagram/android/model/ShareLaterMedia;

    return-object v0
.end method

.method static synthetic c(Lcom/instagram/android/creation/b/cq;)Lcom/instagram/android/d/j/a;
    .locals 1
    .parameter

    .prologue
    .line 36
    iget-object v0, p0, Lcom/instagram/android/creation/b/cq;->Z:Lcom/instagram/android/d/j/a;

    return-object v0
.end method

.method static synthetic d(Lcom/instagram/android/creation/b/cq;)Landroid/widget/ImageView;
    .locals 1
    .parameter

    .prologue
    .line 36
    iget-object v0, p0, Lcom/instagram/android/creation/b/cq;->g:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic e(Lcom/instagram/android/creation/b/cq;)Lcom/instagram/android/widget/ag;
    .locals 1
    .parameter

    .prologue
    .line 36
    iget-object v0, p0, Lcom/instagram/android/creation/b/cq;->e:Lcom/instagram/android/widget/ag;

    return-object v0
.end method

.method private e(I)V
    .locals 1
    .parameter

    .prologue
    .line 164
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/cq;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    instance-of v0, v0, Lcom/instagram/android/activity/MainTabActivity;

    if-eqz v0, :cond_0

    .line 165
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/cq;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/activity/MainTabActivity;

    invoke-virtual {v0, p1}, Lcom/instagram/android/activity/MainTabActivity;->b(I)V

    .line 167
    :cond_0
    return-void
.end method

.method static synthetic f(Lcom/instagram/android/creation/b/cq;)V
    .locals 0
    .parameter

    .prologue
    .line 36
    invoke-direct {p0}, Lcom/instagram/android/creation/b/cq;->Z()V

    return-void
.end method

.method static synthetic g(Lcom/instagram/android/creation/b/cq;)V
    .locals 0
    .parameter

    .prologue
    .line 36
    invoke-direct {p0}, Lcom/instagram/android/creation/b/cq;->Y()V

    return-void
.end method

.method static synthetic h(Lcom/instagram/android/creation/b/cq;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 36
    iget-object v0, p0, Lcom/instagram/android/creation/b/cq;->b:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic i(Lcom/instagram/android/creation/b/cq;)Landroid/view/View;
    .locals 1
    .parameter

    .prologue
    .line 36
    iget-object v0, p0, Lcom/instagram/android/creation/b/cq;->f:Landroid/view/View;

    return-object v0
.end method


# virtual methods
.method public X()V
    .locals 1

    .prologue
    .line 237
    iget-object v0, p0, Lcom/instagram/android/creation/b/cq;->e:Lcom/instagram/android/widget/ag;

    invoke-virtual {v0}, Lcom/instagram/android/widget/ag;->b()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 238
    invoke-direct {p0}, Lcom/instagram/android/creation/b/cq;->Z()V

    .line 242
    :goto_0
    return-void

    .line 240
    :cond_0
    invoke-direct {p0}, Lcom/instagram/android/creation/b/cq;->Y()V

    goto :goto_0
.end method

.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 6
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v5, 0x0

    .line 65
    sget v0, Lcom/facebook/ax;->share_later:I

    invoke-virtual {p1, v0, p2, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v1

    .line 66
    sget v0, Lcom/facebook/aw;->metadata_imageview:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/widget/ConstrainedImageView;

    iget-object v2, p0, Lcom/instagram/android/creation/b/cq;->c:Lcom/instagram/android/model/ShareLaterMedia;

    invoke-virtual {v2}, Lcom/instagram/android/model/ShareLaterMedia;->a()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/instagram/android/widget/ConstrainedImageView;->setUrl(Ljava/lang/String;)V

    .line 69
    iget-object v0, p0, Lcom/instagram/android/creation/b/cq;->c:Lcom/instagram/android/model/ShareLaterMedia;

    invoke-virtual {v0}, Lcom/instagram/android/model/ShareLaterMedia;->c()Lcom/instagram/model/a/a;

    move-result-object v0

    sget-object v2, Lcom/instagram/model/a/a;->b:Lcom/instagram/model/a/a;

    if-ne v0, v2, :cond_0

    .line 70
    sget v0, Lcom/facebook/aw;->post_overlay:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    sget v2, Lcom/facebook/av;->upload_thumbnail_overlay_video:I

    invoke-virtual {v0, v2}, Landroid/view/View;->setBackgroundResource(I)V

    .line 74
    :cond_0
    sget v0, Lcom/facebook/aw;->caption_text_view:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/widget/IgAutoCompleteTextView;

    iput-object v0, p0, Lcom/instagram/android/creation/b/cq;->a:Lcom/instagram/android/widget/IgAutoCompleteTextView;

    .line 75
    iget-object v0, p0, Lcom/instagram/android/creation/b/cq;->a:Lcom/instagram/android/widget/IgAutoCompleteTextView;

    iget-object v2, p0, Lcom/instagram/android/creation/b/cq;->c:Lcom/instagram/android/model/ShareLaterMedia;

    invoke-virtual {v2}, Lcom/instagram/android/model/ShareLaterMedia;->d()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/instagram/android/widget/IgAutoCompleteTextView;->setText(Ljava/lang/CharSequence;)V

    .line 76
    iget-object v0, p0, Lcom/instagram/android/creation/b/cq;->a:Lcom/instagram/android/widget/IgAutoCompleteTextView;

    new-instance v2, Lcom/instagram/android/a/a;

    invoke-virtual {p0}, Lcom/instagram/android/creation/b/cq;->j()Landroid/support/v4/app/j;

    move-result-object v3

    invoke-direct {v2, v3}, Lcom/instagram/android/a/a;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0, v2}, Lcom/instagram/android/widget/IgAutoCompleteTextView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 78
    sget v0, Lcom/facebook/aw;->share_table:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/widget/ShareTable;

    iput-object v0, p0, Lcom/instagram/android/creation/b/cq;->d:Lcom/instagram/android/widget/ShareTable;

    .line 79
    new-instance v0, Lcom/instagram/android/widget/ag;

    iget-object v2, p0, Lcom/instagram/android/creation/b/cq;->d:Lcom/instagram/android/widget/ShareTable;

    iget-object v3, p0, Lcom/instagram/android/creation/b/cq;->c:Lcom/instagram/android/model/ShareLaterMedia;

    sget-object v4, Lcom/instagram/android/widget/ar;->b:Lcom/instagram/android/widget/ar;

    invoke-direct {v0, v2, p0, v3, v4}, Lcom/instagram/android/widget/ag;-><init>(Lcom/instagram/android/widget/ShareTable;Lcom/instagram/e/b/b;Lcom/instagram/model/a/b;Lcom/instagram/android/widget/ar;)V

    iput-object v0, p0, Lcom/instagram/android/creation/b/cq;->e:Lcom/instagram/android/widget/ag;

    .line 84
    iget-object v0, p0, Lcom/instagram/android/creation/b/cq;->e:Lcom/instagram/android/widget/ag;

    invoke-virtual {v0, p0}, Lcom/instagram/android/widget/ag;->a(Lcom/instagram/android/widget/aq;)V

    .line 86
    iget-object v0, p0, Lcom/instagram/android/creation/b/cq;->c:Lcom/instagram/android/model/ShareLaterMedia;

    invoke-virtual {v0}, Lcom/instagram/android/model/ShareLaterMedia;->e()Z

    move-result v0

    if-nez v0, :cond_1

    .line 87
    iget-object v0, p0, Lcom/instagram/android/creation/b/cq;->e:Lcom/instagram/android/widget/ag;

    invoke-virtual {v0}, Lcom/instagram/android/widget/ag;->a()Lcom/instagram/android/creation/widget/AlphaUploadCompoundButton;

    move-result-object v0

    invoke-virtual {v0, v5}, Lcom/instagram/android/creation/widget/AlphaUploadCompoundButton;->setEnabled(Z)V

    .line 90
    :cond_1
    return-object v1
.end method

.method public a()Lcom/instagram/a/a;
    .locals 1

    .prologue
    .line 103
    new-instance v0, Lcom/instagram/android/creation/b/cr;

    invoke-direct {v0, p0}, Lcom/instagram/android/creation/b/cr;-><init>(Lcom/instagram/android/creation/b/cq;)V

    return-object v0
.end method

.method public a(IILandroid/content/Intent;)V
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 160
    iget-object v0, p0, Lcom/instagram/android/creation/b/cq;->e:Lcom/instagram/android/widget/ag;

    iget-object v1, p0, Lcom/instagram/android/creation/b/cq;->c:Lcom/instagram/android/model/ShareLaterMedia;

    invoke-virtual {v1}, Lcom/instagram/android/model/ShareLaterMedia;->e()Z

    move-result v1

    invoke-virtual {v0, p1, p2, p3, v1}, Lcom/instagram/android/widget/ag;->a(IILandroid/content/Intent;Z)V

    .line 161
    return-void
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 54
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->a(Landroid/os/Bundle;)V

    .line 56
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/cq;->i()Landroid/os/Bundle;

    move-result-object v0

    .line 57
    const-string v1, "ShareLaterMedia.SHARE_LATER_MEDIA"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/ShareLaterMedia;

    iput-object v0, p0, Lcom/instagram/android/creation/b/cq;->c:Lcom/instagram/android/model/ShareLaterMedia;

    .line 58
    const/16 v0, 0x8

    invoke-direct {p0, v0}, Lcom/instagram/android/creation/b/cq;->e(I)V

    .line 59
    new-instance v0, Lcom/instagram/android/util/a;

    invoke-direct {v0}, Lcom/instagram/android/util/a;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/creation/b/cq;->i:Lcom/instagram/android/util/a;

    .line 60
    return-void
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 268
    const-string v0, "share_later"

    return-object v0
.end method

.method public g_()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 256
    invoke-super {p0}, Lcom/instagram/e/b/b;->g_()V

    .line 258
    iput-object v1, p0, Lcom/instagram/android/creation/b/cq;->a:Lcom/instagram/android/widget/IgAutoCompleteTextView;

    .line 259
    iput-object v1, p0, Lcom/instagram/android/creation/b/cq;->d:Lcom/instagram/android/widget/ShareTable;

    .line 260
    iget-object v0, p0, Lcom/instagram/android/creation/b/cq;->e:Lcom/instagram/android/widget/ag;

    invoke-virtual {v0, p0}, Lcom/instagram/android/widget/ag;->b(Lcom/instagram/android/widget/aq;)V

    .line 261
    iput-object v1, p0, Lcom/instagram/android/creation/b/cq;->e:Lcom/instagram/android/widget/ag;

    .line 262
    iput-object v1, p0, Lcom/instagram/android/creation/b/cq;->f:Landroid/view/View;

    .line 263
    iput-object v1, p0, Lcom/instagram/android/creation/b/cq;->g:Landroid/widget/ImageView;

    .line 264
    return-void
.end method

.method public w()V
    .locals 2

    .prologue
    .line 171
    invoke-super {p0}, Lcom/instagram/e/b/b;->w()V

    .line 173
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/cq;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getRequestedOrientation()I

    move-result v0

    iput v0, p0, Lcom/instagram/android/creation/b/cq;->h:I

    .line 174
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/cq;->j()Landroid/support/v4/app/j;

    move-result-object v0

    const/4 v1, -0x1

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->setRequestedOrientation(I)V

    .line 175
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/cq;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x10

    invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V

    .line 176
    return-void
.end method

.method public x()V
    .locals 2

    .prologue
    .line 180
    invoke-super {p0}, Lcom/instagram/e/b/b;->x()V

    .line 181
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/cq;->j()Landroid/support/v4/app/j;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/creation/b/cq;->a:Lcom/instagram/android/widget/IgAutoCompleteTextView;

    invoke-static {v0, v1}, Lcom/instagram/n/k;->a(Landroid/content/Context;Landroid/view/View;)V

    .line 182
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/cq;->j()Landroid/support/v4/app/j;

    move-result-object v0

    iget v1, p0, Lcom/instagram/android/creation/b/cq;->h:I

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->setRequestedOrientation(I)V

    .line 183
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/cq;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V

    .line 185
    return-void
.end method

.method public y()V
    .locals 1

    .prologue
    .line 95
    invoke-super {p0}, Lcom/instagram/e/b/b;->y()V

    .line 96
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/cq;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/instagram/android/creation/b/cq;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    instance-of v0, v0, Lcom/instagram/android/activity/MainTabActivity;

    if-eqz v0, :cond_0

    .line 97
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/instagram/android/creation/b/cq;->e(I)V

    .line 99
    :cond_0
    return-void
.end method
